<!DOCTYPE  HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"   "http://www.w3.org/TR/html4/frameset.dtd">

<HTML lang="zh-cn">
<HEAD>
	<META content="IE=11.0000" http-equiv="X-UA-Compatible">
	<META http-equiv="Content-Type" content="text/html;charset=utf-8">
	<META charset="utf-8">
	<META name="viewport" content="width=device-width, initial-scale=1.0">
	<META name="referrer" content="origin">
	<META http-equiv="Cache-Control" content="no-transform">
	<META http-equiv="Cache-Control" content="no-siteapp">
	<META http-equiv="X-UA-Compatible" content="IE=edge">
	<TITLE>windows配置JDK环境变量</TITLE>
	<LINK href="./jdk_peizhi_files/blog-common.min.css" rel="stylesheet">
	<LINK id="MainCss" href="./jdk_peizhi_files/bundle-codinglife.min.css" rel="stylesheet">
	<LINK href="./jdk_peizhi_files/custom.css" rel="stylesheet" type="text/css">
	<LINK id="mobile-style" href="./jdk_peizhi_files/bundle-codinglife-mobile.min.css" rel="stylesheet" type="text/css"
		media="only screen and (max-width: 767px)">
	<META name="GENERATOR" content="MSHTML 11.00.10570.1001">
</HEAD>
<BODY><A name="top"></A>
	<!--done-->
	<DIV id="home">
		<DIV id="header">
			<DIV id="blogTitle"><A id="lnkBlogLogo" href="javascript:void(0)"><IMG id="blogLogo" alt="返回主页"
						src="./jdk_peizhi_files/logo.gif"></A>
				<!--done-->
				<H1><A class="headermaintitle HeaderMainTitle" id="Header1_HeaderTitle"
						href="javascript:void(0)">JDK环境变量配置</a>
				</H1>
				<H2></H2>
			</DIV>
			<!--end: blogTitle 博客的标题和副标题 -->
		</DIV>
		<!--end: header 头部 -->
		<DIV id="main">
			<DIV id="mainContent">
				<DIV class="forFlow">
					<DIV id="post_detail">
						<!--done-->
						<DIV id="topics">
							<DIV class="post">
								<H1 class="postTitle"><A class="postTitle2" id="cb_post_title_url"
										href="javascript:void(0)">windows配置JDK环境变量</A>
								</H1>
								<DIV class="clear"></DIV>
								<DIV class="postBody">
									<DIV class="blogpost-body " id="cnblogs_post_body">
										<DIV>1、首先要打开系统环境变量配置的页面。具体操作是：桌面上找到“此电脑”，然后右键 “属性”。<BR></DIV>
										<DIV><BR></DIV>
										<DIV><IMG src="./jdk_peizhi_files/1247358-20190116101135343-367427561.png"><BR>
										</DIV>
										<DIV><BR></DIV>
										<DIV>然后打开高级系统配置<BR></DIV>
										<DIV><BR></DIV>
										<DIV><IMG src="./jdk_peizhi_files/1247358-20190116101135960-2127215352.png"><BR>
										</DIV>
										<DIV><BR></DIV>
										<DIV>2、然后在弹出的界面打开环境变量<BR></DIV>
										<DIV><BR></DIV>
										<DIV><IMG src="./jdk_peizhi_files/1247358-20190116101136431-1389892956.png"><BR>
										</DIV>
										<DIV><BR></DIV>
										<DIV>3、在弹出的页面，“系统变量区域”点新建按钮<BR></DIV>
										<DIV><BR></DIV>
										<DIV><IMG src="./jdk_peizhi_files/1247358-20190116101136973-959509172.png"><BR>
										</DIV>
										<DIV><BR></DIV>
										<DIV>4、在新建页面输入"变量名"位 JAVA_HOME,输入“变量值”为你安装的JDK地址，参考下图<BR></DIV>
										<DIV><IMG src="./jdk_peizhi_files/1247358-20190116101137541-1078073476.png"><BR>
										</DIV>
										<DIV><BR></DIV>
										<DIV><BR></DIV>
										<DIV>
											5、在系统变量区域，选择"新建按钮"输入"变量名"为CLASSPATH,输入"变量值"为.;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar<BR>
										</DIV>
										<DIV><BR></DIV>
										<DIV><IMG src="./jdk_peizhi_files/1247358-20190116101137965-83623570.png"><BR>
										</DIV>
										<DIV><BR></DIV>
										<DIV>
											6、在系统变量区域，选择Path,点击下面的编辑按钮，在弹出的框中选择新建添加2行，一行输入%JAVA_HOME%\bin，一行输入%JAVA_HOME%\jre\bin<BR>
										</DIV>
										<DIV><BR></DIV>
										<DIV><IMG src="./jdk_peizhi_files/1247358-20190116101138633-1497283510.png"><BR>
										</DIV>
										<DIV><BR></DIV>
										<DIV>7、在命令提示符中输入javac命令，出现如下图所示<BR></DIV>
										<DIV><BR></DIV>
										<DIV><IMG src="./jdk_peizhi_files/1247358-20190116101139091-502458018.png"><BR>
										</DIV>
										<DIV><BR></DIV>
										<DIV>8、在命令提示符中输入java -version 查询当前安装的jdk版本<BR></DIV>
										<DIV><BR></DIV>
										<DIV><IMG src="./jdk_peizhi_files/1247358-20190116101139451-1359065990.png"><BR>
										</DIV>
										<DIV><BR></DIV>
										<wiz_tmp_tag id="wiz-table-range-border" style="display: none;"
											contenteditable="false">
											<DIV id="wiz-table-col-line" style="display: none;"></DIV>
											<DIV id="wiz-table-row-line" style="display: none;"></DIV>
											<DIV id="wiz-table-range-border_start" style="display: none;">
												<DIV id="wiz-table-range-border_start_top"></DIV>
												<DIV id="wiz-table-range-border_start_right"></DIV>
												<DIV id="wiz-table-range-border_start_bottom"></DIV>
												<DIV id="wiz-table-range-border_start_left"></DIV>
												<DIV id="wiz-table-range-border_start_dot"></DIV>
											</DIV>
											<DIV id="wiz-table-range-border_range" style="display: none;">
												<DIV id="wiz-table-range-border_range_top"></DIV>
												<DIV id="wiz-table-range-border_range_right"></DIV>
												<DIV id="wiz-table-range-border_range_bottom"></DIV>
												<DIV id="wiz-table-range-border_range_left"></DIV>
												<DIV id="wiz-table-range-border_range_dot"></DIV>
											</DIV>
										</wiz_tmp_tag>
									</DIV>
									<DIV id="MySignature"></DIV>
									<DIV class="clear"></DIV>
									<DIV id="blog_post_info_block">
										<DIV id="blog_post_info"></DIV>
										<DIV class="clear"></DIV>
										<DIV id="post_next_prev"></DIV>
									</DIV>
								</DIV>
		
							</DIV>
						</DIV>
						<!--end: topics 文章、评论容器-->
					</DIV>
					

					

					
					
				</DIV>
				<!--end: forFlow -->
			</DIV>
			<!--end: mainContent 主体内容容器-->
			
			<!--end: sideBar 侧边栏容器 -->
			<DIV class="clear"></DIV>
		</DIV>
		<!--end: main -->
		<DIV class="clear"></DIV>
		<DIV id="footer">
			<!--done--> Copyright © 2020 世界人民大团结万岁 <BR><SPAN id="poweredby">Powered
				by .NET Core on Kubernetes</SPAN> </DIV>
		<!--end: footer -->
	</DIV>
	<!--end: home 自定义的最大容器 -->
</BODY>

</HTML>
